/**
 * GeneralNaiveAPIResponse.java
 * ************************** 
 * @date Jun 1, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package infrastructureAPI;

/**
 * Description: 
 * The GeneralNaiveAPIResponse implements the APIResponse
 * interface by simply storing a String object that
 * represent the text answer to a Request.
 *
 */
public class GeneralNaiveAPIResponse implements APIResponse {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	protected String responseString;
	
	public GeneralNaiveAPIResponse(String responseString){
		this.responseString = responseString;
	}

	@Override
	public Object getResponse() throws ResponseException {
		return responseString;
	}
	
	public String toString(){
		return responseString;
	}

	public final String getResponseString() {
		return responseString;
	}

	public final void setResponseString(String responseString) {
		this.responseString = responseString;
	}

}
